package com.njust.service;

import com.njust.controller.TestController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 默认Spring容器为父容器，SpringMVC容器为子容器
 * 因此子容器拿父容器的bean没问题，父容器拿子容器的bean会报错
 */
@Service
public class TestService {

//    @Autowired
//    private TestController testController;
}
